package com.edu.mapper.load;

import com.edu.entity.queryanswer.Querypage;
import com.edu.entity.resource.Resource;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface LoadMapper  {
    void upload(Resource resource);
    List<Resource> findlist(Querypage querypage);
    List<Resource> findByName(@Param("resourceName") String resourceName,@Param("page") Integer page,@Param("size") Integer size);
    Resource findById(Integer id);
    int gettotal(@Param("resourceName") String resourceName);
    List<Resource> pagelist();
}
